/**
 * Copyright &copy; 2012-2016 <a href="https://istep.lczyfz.com">Istep</a> All rights reserved.
 */
package com.lczyfz.istep.modules.scene.entity;

import com.lczyfz.istep.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 教学实验环境Entity
 * @author dingh
 * @version 2017-03-07
 */
public class SceneEnvironment extends DataEntity<SceneEnvironment> {
	
	private static final long serialVersionUID = 1L;
	private String environmentName;		// 教学实验环境名称
	private String environmentType;		// 教学实验环境类型
	private String environmentTime;		// 实验时间
	private String environmentAccessMode;
	private String label;		// 标签
	private String increaseTimeAllow;		// 是否允许增加实验时间
	private String increaseTime;		// 每次增加时间
	private String increaseNumber;		// 增加次数
	private String topologyXml;		// 拓扑xml

	private String beginEnvironmentTime;		// 开始 实验时间
	private String endEnvironmentTime;		// 结束 实验时间
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	private Date beginUpdateDate;		// 开始 更新时间
	private Date endUpdateDate;		// 结束 更新时间
	
	public SceneEnvironment() {
		super();
	}

	public SceneEnvironment(String id){
		super(id);
	}

	@Length(min=1, max=64, message="教学实验环境名称长度必须介于 1 和 64 之间")
	public String getEnvironmentName() {
		return environmentName;
	}

	public void setEnvironmentName(String environmentName) {
		this.environmentName = environmentName;
	}
	
	@Length(min=1, max=4, message="教学实验环境类型长度必须介于 1 和 4 之间")
	public String getEnvironmentType() {
		return environmentType;
	}

	public void setEnvironmentType(String environmentType) {
		this.environmentType = environmentType;
	}
	
	@Length(min=1, max=8, message="实验时间长度必须介于 1 和 8 之间")
	public String getEnvironmentTime() {
		return environmentTime;
	}

	public void setEnvironmentTime(String environmentTime) {
		this.environmentTime = environmentTime;
	}

	@Length(min=1, max=64, message="实验设备访问方式长度必须介于 1 和 64 之间")
	public String getEnvironmentAccessMode() {
		return environmentAccessMode;
	}

	public void setEnvironmentAccessMode(String environmentAccessMode) {
		this.environmentAccessMode = environmentAccessMode;
	}

	@Length(min=0, max=64, message="标签长度必须介于 0 和 64 之间")
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}
	
	@Length(min=0, max=4, message="是否允许增加实验时间长度必须介于 0 和 4 之间")
	public String getIncreaseTimeAllow() {
		return increaseTimeAllow;
	}

	public void setIncreaseTimeAllow(String increaseTimeAllow) {
		this.increaseTimeAllow = increaseTimeAllow;
	}
	
	@Length(min=0, max=64, message="每次增加时间长度必须介于 0 和 64 之间")
	public String getIncreaseTime() {
		return increaseTime;
	}

	public void setIncreaseTime(String increaseTime) {
		this.increaseTime = increaseTime;
	}
	
	@Length(min=0, max=64, message="增加次数长度必须介于 0 和 64 之间")
	public String getIncreaseNumber() {
		return increaseNumber;
	}

	public void setIncreaseNumber(String increaseNumber) {
		this.increaseNumber = increaseNumber;
	}
	
	public String getBeginEnvironmentTime() {
		return beginEnvironmentTime;
	}

	public void setBeginEnvironmentTime(String beginEnvironmentTime) {
		this.beginEnvironmentTime = beginEnvironmentTime;
	}
	
	public String getEndEnvironmentTime() {
		return endEnvironmentTime;
	}

	public void setEndEnvironmentTime(String endEnvironmentTime) {
		this.endEnvironmentTime = endEnvironmentTime;
	}
		
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
	public Date getBeginUpdateDate() {
		return beginUpdateDate;
	}

	public void setBeginUpdateDate(Date beginUpdateDate) {
		this.beginUpdateDate = beginUpdateDate;
	}
	
	public Date getEndUpdateDate() {
		return endUpdateDate;
	}

	public void setEndUpdateDate(Date endUpdateDate) {
		this.endUpdateDate = endUpdateDate;
	}

	public String getTopologyXml() {
		return topologyXml;
	}

	public void setTopologyXml(String topologyXml) {
		this.topologyXml = topologyXml;
	}
}